function [Conditions,ceq] = parameterfunspecial(x,n,Pv,b)
Conditions= zeros(n+2,1) ;
Q=0*ones(1,n);
for i=1:n-1
    Conditions(i)= x(1)*(Pv(i)*Q(i)-Pv(i)-Pv(i+1)*Q(i+1)) + b(i);
end    
Conditions(n) =x(1)*(Pv(n)*Q(n)-Pv(n)-Pv(1)*Q(1)) + b(n);
Conditions(n+1) = 0;
for i=1:n
    Conditions(n+1)= Conditions(n+1) -Pv(i)*Q(i);
end
Conditions(n+1) = x(1)*Conditions(n+1) + x(1)+ b(n+1);
Conditions(n+2) = x(1)*Pv(1)*Q(1) + b(n+2);
ceq=[];
end